import java.util.Scanner;

public class Main {
    // 计算糖果
    public static void main1(String[] args) {
        Scanner in = new Scanner(System.in);
        int aSubB = in.nextInt();
        int bSubC = in.nextInt();
        int aAddB = in.nextInt();
        int bAddC = in.nextInt();
        int tmp = aSubB + aAddB;
        if(tmp % 2 != 0 || tmp < 0) {
            System.out.println("No");
            return;
        }
        int a = tmp / 2;
        int b = aAddB - a;
        int c = bAddC - b;
        if(a >= 0 && b >= 0 && c >= 0) {
            System.out.println(a + " " + b + " " + c);
        }else {
            System.out.println("No");
        }
    }

    // 进制转换 toString
    public static void main2(String[] args) {
        Scanner in = new Scanner(System.in);
        while (in.hasNextInt()) {
            Integer m = in.nextInt();
            int n = in.nextInt();
            System.out.println(m.toString(m, n).toUpperCase());
        }
    }
    // 进制转换
    public static void main3(String[] args) {
        Scanner in = new Scanner(System.in);
        int m = in.nextInt();
        int n = in.nextInt();
        String num = "0123456789ABCDEF";
        StringBuilder ret = new StringBuilder();
        int flag = 1; // 标记是否有负号
        if(m < 0) { // 将负数转换为正数计算
            flag = -1;
            m = -m;
        }else if(m == 0) {
            ret.append("0");
        }
        // 进行进制转换
        while(m > 0) {
            int r = m % n;
            ret.append(num.charAt(r));
            m = m / n;
        }
        // 处理 -
        if(flag == -1) {
            ret.append("-");
        }
        ret.reverse();
        System.out.println(ret);
    }
}